//
//  LJP_headerView.m
//  God_is_a_Girl
//
//  Created by 李继鹏 on 15/9/28.
//  Copyright (c) 2015年 呸. All rights reserved.
//

#import "LJP_headerView.h"

@implementation LJP_headerView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.searchButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.setterButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.searchButton.frame = CGRectMake([UIScreen mainScreen].bounds.size.width - 52, self.frame.size.height - 42, 32, 32);
        [self.searchButton setBackgroundImage:[UIImage imageNamed:@"search"] forState:UIControlStateNormal];
        [self addSubview:self.searchButton];
    }
    return self;
}
@end
